<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('api/v1', function () {
    Route::post('msg', 'api/msg');
})->allowCrossDomain();

Route::group('auth/v1', function () {
    Route::any('create', 'auth/createUser');
    Route::any('token', 'auth/createUser');
    Route::any('info', 'auth/getUserInfo');

})->allowCrossDomain();

// 用户申请
Route::get('apply', 'index/apply');
Route::post('apply', 'auth/createUser');

// 检查邮箱
// 发送邮箱验证码
Route::post('check', 'auth/sendEmail');

// 验证码图片
Route::get('captcha/[:config]','\\think\\captcha\\CaptchaController@index');